package com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory;

import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.dto.CrmLaboratoryListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.laboratory.param.CrmLaboratoryUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * CrmLaboratoryCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/crm/laboratory/fallback")
public class CrmLaboratoryCloudServiceFallback implements CrmLaboratoryCloudService {

    @Override
    public CrmLaboratoryListCloudDto query(CrmLaboratoryQueryCloudParam param) {
        return new CrmLaboratoryListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(CrmLaboratoryCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(CrmLaboratoryUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(CrmLaboratoryDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
